import { MenuRouter } from '@/pages/SalaryManage/components/MenuFilterRouter';

/** 【专项扣款】权限码 */
const SPECIAL_DEDUCT_AUTH_CODE = 'finance:salary:computation:import:taxspecial';
/** 【绩效系数】权限码 */
const IMPORT_KPI_AUTH_CODE = 'finance:salary:computation:import:kpi';
/** 【个税出始化】权限码 */
const TAX_INIT_AUTH_CODE = 'finance:salary:computation:import:taxinit';
/** 【险金基数】权限码 */
const SOCIAL_INIT_AUTH_CODE = 'finance:salary:computation:import:socialinit';

const IMPORT_MENU_AUTH_CODE_MAP = {
    CN: [SPECIAL_DEDUCT_AUTH_CODE, IMPORT_KPI_AUTH_CODE, TAX_INIT_AUTH_CODE, SOCIAL_INIT_AUTH_CODE],
    SG: [IMPORT_KPI_AUTH_CODE]
};

export default MenuRouter('importExcelModel', IMPORT_MENU_AUTH_CODE_MAP);
